package com.moss.cloud.common.core.enums.state;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author chengming
 * @date 2023/3/27
 */
public enum Deleted {

    /** 是否禁用（0启用；1禁用；2删除） */
    ENABLE(0, "启用"),
    DISABLE(1, "禁用"),
    DELETE(2, "删除")
    ;


    Deleted(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public static List<Integer> deleteds(Integer ...ags){
        List<Integer> deleteds = new ArrayList<>();
        Arrays.stream(ags.clone()).forEach(item->{
            deleteds.add(item);
        });
        return deleteds;
    }
    private final Integer code;
    private final String desc;

    public Integer code() {
        return this.code;
    }

    public String desc() {
        return this.desc;
    }
}
